package com.example.dmuser;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
// 非集群环境下, 不用开启该功能
// @EnableRedisHttpSession
public class DmUserApplication implements WebMvcConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(DmUserApplication.class, args);
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/js/**")
                .addResourceLocations("file:D:/_文件柜/123/c123_2516/myblog/login-starter/src/main/resources/static/js/");
    }
}
